#class auto


/***********************************
 * Configuration                   *
 * -------------                   *
 * All fields in this section must *
 * be altered to match your local  *
 * network settings.               *
 ***********************************/

/*
 * Pick the predefined TCP/IP configuration for this sample.  See
 * LIB\TCPIP\TCP_CONFIG.LIB for instructions on how to set the
 * configuration.
 */
#define TCPCONFIG 3

/********************************
 * End of configuration section *
 ********************************/

//#memmap xmem
#use dcrtcp.lib
#use userlib.lib

void main()
{
   char	buffer[100];
   sock_init();
	// Wait for the interface to come up
	while (ifpending(IF_DEFAULT) == IF_COMING_UP)
   {
		tcp_tick(NULL);
      printf("wating for network interface\n");
	}
   printf( "My IP address is %s\n\n", inet_ntoa(buffer, gethostid()) );

   send_notification("sydneydixon@yahoo.com");
}